package com.jianglin.state2.model.dto;

import com.jianglin.state2.dao.entity.Project;
import com.jianglin.state2.model.core.Biom;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ProjectCardDto extends Biom<Project> {

    @ApiModelProperty(value = "projectId")
    private Integer projectId;

    @ApiModelProperty(value = "projectForm")
    private String projectForm;

    @ApiModelProperty(value = "projectName")
    private String projectName;

    @ApiModelProperty(value = "beizu")
    private String beizu;

    @ApiModelProperty(value = "projectComplete")
    private Float projectComplete;

    public ProjectCardDto convertIn(Project inObject){
        ProjectCardDto projectCardDto = superConvertIn(inObject);
        this.projectId = projectCardDto.getProjectId();
        this.projectForm = projectCardDto.getProjectForm();
        this.projectName = projectCardDto.getProjectName();
        this.beizu = projectCardDto.getBeizu();
        this.projectComplete = projectCardDto.getProjectComplete();
        return this;
    }
}
